package com.ruoyi.health.domain;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 便民服务对象 bm_service
 * 
 * @author dalian
 * @date 2023-08-06
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BmService extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 便民服务ID */
    private Long id;

    /** 服务项目id */
    @Excel(name = "服务项目id")
    private Long serviceItemId;

    /** 服务商ID */
    @Excel(name = "服务商ID")
    private Long supplierId;

    /** 服务价格低限 */
    @Excel(name = "服务价格低限")
    private Long priceMin;

    /** 服务价格高限 */
    @Excel(name = "服务价格高限")
    private Long priceMax;

    /** 服务单位 */
    @Excel(name = "计费单位")
    private String unit;

    /** 服务封面图 */
    @Excel(name = "服务封面图")
    private String cover;

    /** 服务宣传简介 */
    @Excel(name = "服务宣传简介")
    private String brief;

    /** 服务电话 */
    @Excel(name = "服务电话")
    private String tel;

    /** 服务联系人 */
    @Excel(name = "服务联系人")
    private String contact;

    /** 服务地址 */
    @Excel(name = "服务地址")
    private String address;

    /**  */
    @Excel(name = "")
    private String serviceRegion;

    //关联的供应商（supplierId属性）
    private Supplier supplier;

    //关联的服务项目(serviceItemId属性)
    private ServiceItem serviceItem;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("serviceItemId", getServiceItemId())
            .append("supplierId", getSupplierId())
            .append("priceMin", getPriceMin())
            .append("priceMax", getPriceMax())
            .append("unit", getUnit())
            .append("cover", getCover())
            .append("brief", getBrief())
            .append("tel", getTel())
            .append("contact", getContact())
            .append("address", getAddress())
            .append("serviceRegion", getServiceRegion())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .toString();
    }
}
